-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
randomness #6: dkg manager update from randomnet #12226
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
}, | ||
close_req = close_rx.select_next_some() => { | ||
self.process_close_cmd(close_req.ok()) | ||
} | ||
}, | ||
_ = interval.tick().fuse() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is the best practice for logging.. @zekun000 thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's okay but this will print out the whole transcript bytes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah i see there's a Debug impl for the transcript
dkg/src/dkg_manager/mod.rs
Outdated
); | ||
self.setup_deal_broadcast(start_time_us, &metadata) | ||
.await | ||
.expect("[DKG] setup_deal_broadcast() should be infallible"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe alert instead of expect?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the only error is if inner state is not NotStarted?
@@ -27,15 +29,26 @@ impl<S: DKGTrait> Default for TranscriptAggregator<S> { | |||
} | |||
|
|||
pub struct TranscriptAggregationState<DKG: DKGTrait> { | |||
start_time: Duration, | |||
my_addr: AccountAddress, | |||
valid_peer_transcript_seen: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is never set to be true?
911292f
to
0db1642
Compare
166f1b6
to
2392d2a
Compare
a205b1e
to
e675e73
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
dkg/src/dkg_manager/mod.rs
Outdated
); | ||
self.setup_deal_broadcast(start_time_us, &metadata) | ||
.await | ||
.expect("[DKG] setup_deal_broadcast() should be infallible"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the only error is if inner state is not NotStarted?
}, | ||
close_req = close_rx.select_next_some() => { | ||
self.process_close_cmd(close_req.ok()) | ||
} | ||
}, | ||
_ = interval.tick().fuse() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's okay but this will print out the whole transcript bytes?
}, | ||
close_req = close_rx.select_next_some() => { | ||
self.process_close_cmd(close_req.ok()) | ||
} | ||
}, | ||
_ = interval.tick().fuse() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah i see there's a Debug impl for the transcript
"[DKG] txn executed and entering new epoch.", | ||
); | ||
|
||
drop(vtxn_guard); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for explicit drop?
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
* consensus update from randomnet * update * update execution client api * dkg manager update from randomnet * avoid panic
* consensus update from randomnet * update * update execution client api * dkg manager update from randomnet * avoid panic
* randomness type update 3 (#12202) * randomness #4: RandManager update from randomnet (#12224) * RandManager update from randomnet * lint * lint * randomness #5: consensus update from randomnet (#12225) * consensus update from randomnet * update * randomness #6: dkg manager update from randomnet (#12226) * consensus update from randomnet * update * update execution client api * dkg manager update from randomnet * avoid panic * make api, indexer, fake aptos db aware of block metadata ext txns (#12227) * randomness #8: framework update from randomnet (#12228) * framework update from randomnet Squashed commit of the following to fix jwk smoke tests: commit 3bd0154 Author: zhoujun.ma <[email protected]> Date: Tue Feb 27 02:47:57 2024 -0800 update commit 2eb6add Author: zhoujun.ma <[email protected]> Date: Tue Feb 27 02:12:27 2024 -0800 update commit 9d82151 Author: zhoujun.ma <[email protected]> Date: Tue Feb 27 01:51:08 2024 -0800 debug fix doc test fix spec fix doc update initialization in genesis update features.move initialize randomness in genesis update golden files private entry fun check and vm updates * postpone release builder changes * update goldenfiles * fix is_safe_call spec * randomness #9: smoke tests from randomnet (#12282) * smoke test deps and 1st case from randomnet * update * more smoke tests * randomness #10: randomness API update from randomnet (#12335) * [move] fixes to `randomness.move` (#12250) * [move] fixes to randomness.move * Fixed the Prover spec Fixed the spec to unblock the PR. Need to prove the introduced assumptions with proper loop invariants, which should be provable. * lint --------- Co-authored-by: Junkil Park <[email protected]> Co-authored-by: danielxiangzl <[email protected]> * fix specs --------- Co-authored-by: Alin Tomescu <[email protected]> Co-authored-by: Junkil Park <[email protected]> Co-authored-by: danielxiangzl <[email protected]> * lint * update genesis * on-chain resources to indicate dkg/randomness failure injection (#12345) * dkg/randomness failure injection * update * smoke test * update * update * fix scripts --------- Co-authored-by: Alin Tomescu <[email protected]> Co-authored-by: Junkil Park <[email protected]> Co-authored-by: danielxiangzl <[email protected]>
Description
Test Plan